package com.lsp.microorder.recharge.service;

import com.lsp.microcommon.entity.RechargeInfo;
import com.lsp.microorder.pay.param.PayResultParam;

public interface RechargeInfoService {
//    充值订单
    Integer addRecharge(RechargeInfo rechargeInfo);
    RechargeInfo rechargeInfo(Integer id);
//    根据业务订单id查询
    RechargeInfo selectInfoByOrderId(String orderId);
//    根据订单编号更新交易订单号和支付状态
    void updateRechargeInfo(PayResultParam param);
//    根据orderId更新订单状态
    void updatePayFlag(String orderNo);

    void updateRechargeStatus(Integer orderId,Integer state);
}
